package classloader;


/**
 * @ClassName ClassLoaderDemo
 * @Author ykx
 * @Date 2024/6/22 17:05
 * @Version 1.0
 */
public class ClassLoaderDemo {
    public static void main(String[] args) {
        final ClassLoader classLoader = ClassLoader.getSystemClassLoader(); // 应用加载器
        System.out.println(classLoader);

        final ClassLoader parent = classLoader.getParent(); // 扩展加载器
        System.out.println(parent);

        final ClassLoader bootParent = parent.getParent(); // 启动加载器
        System.out.println(bootParent);

//        for (URL url : Launcher.getBootstrapClassPath().getURLs()) {
//            System.out.println(url);
//        }

    }
}
